package factura;

import sales.Venta;
import sales.Factura;
import users.Usuario;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import accounting.Contabilidad;
import java.util.ArrayList;
import java.util.Calendar;


@RequestScoped
@ManagedBean(name="factura")



public class FacturaBean {
	
	@ManagedProperty(value = "#{factura}")
	private Factura factura= new Factura();
	private ArrayList<Factura> facturaList;
	private Integer idFactura;
	private String eMail;
	private double importeTotal;
	private String nombre;
	private String numRut;
	private String razonSocial;
	private double subtotal;
	private Venta venta;

	public Venta getVenta() {
		return venta;
	}


	public void setVenta(Venta venta) {
		this.venta = venta;
	}
	

	public String reinit() {  
	    factura = new Factura();
		
	    return null;  
	
}


	public Factura getFactura() {
		return factura;
	}


	public void setFactura(Factura factura) {
		this.factura = factura;
	}


	public ArrayList<Factura> getFacturaList() {
		return facturaList;
	}


	public void setFacturaList(ArrayList<Factura> facturaList) {
		this.facturaList = facturaList;
	}


	public Integer getIdFactura() {
		return idFactura;
	}


	public void setIdFactura(Integer idFactura) {
		this.idFactura = idFactura;
	}


	public String geteMail() {
		return eMail;
	}


	public void seteMail(String eMail) {
		this.eMail = eMail;
	}


	public double getImporteTotal() {
		return importeTotal;
	}


	public void setImporteTotal(double importeTotal) {
		this.importeTotal = importeTotal;
	}


	public String getNombre() {
		return nombre;
	}


	public void setNombre(String nombre) {
		this.nombre = nombre;
	}


	public String getNumRut() {
		return numRut;
	}


	public void setNumRut(String numRut) {
		this.numRut = numRut;
	}


	public String getRazonSocial() {
		return razonSocial;
	}


	public void setRazonSocial(String razonSocial) {
		this.razonSocial = razonSocial;
	}


	public double getSubTotal() {
		return subtotal;
	}


	public void setSubtotal(double subtotal) {
		this.subtotal = subtotal;
	}
	
	
	
	
}




